﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WriteLog
{
    /// <summary>
    /// 委托，用于当出现新的消息的事件触发
    /// </summary>
    /// <param name="logmsg"></param>
    public delegate void NewLogMessageInComeDelegate(CancelEventArgs e);

    /// <summary>
    /// 描述一个可以取消后续处理的事件处理相关参数
    /// </summary>
    public class CancelEventArgs : EventArgs
    {
        /// <summary>
        /// 相关这个时间的日志项
        /// </summary>
        public BaseLogMessage LogMsg { get; internal set; }

        /// <summary>
        /// 取消标志
        /// </summary>
        public bool CancelSave { get; set; }
    }
}
